package com.hoshiicloud.user.service.store;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.common.exception.ServiceException;
import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.user.entity.store.PlatStore;
import com.hoshiicloud.user.entity.store.StoreDepartment;
import com.hoshiicloud.user.param.store.StoreDepartmentQueryParam;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 平台店铺 服务类
 * </p>
 *
 * @author campchen
 * @since 2019-07-24
 */
public interface StoreDepartmentService extends IService<StoreDepartment> {
    IPage getPage(IPage page, QueryWrapper queryWrapper, String key);

    StoreDepartment getById(Long id);

    List<StoreDepartment> getByIds(List<Long> ids, String key);
    @Override
    boolean save(StoreDepartment param);
    @Override
    boolean updateById(StoreDepartment param);

    /**
     * 新增店铺部门
     * @param department
     * @return
     */

    Long insert(StoreDepartment department);

    /**
     * 根据店铺ID或店铺名称获取店铺所有部门
     * @param param
     * @return
     */

     List<Map> storeDeptList(StoreDepartmentQueryParam param);

    /**
     * 根据查询条件获取部门名称列表
     * @param param
     * @return
     */

     List<Map> storeDeptNameList(StoreDepartmentQueryParam param);

}
